﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Sinacor.Infra.UI.Common;
using Sinacor.UI.Bovespa.Monitoracao.Model;

namespace Sinacor.UI.Bovespa.Monitoracao.Communication.Translator.DataContractToModel
{
    /// <summary>
    /// Translator do  Data Contract para a Model 
    /// </summary>
    public class MonitorOMMConfiguracao
    {
        public Model.MonitorOMMConfiguracao ToMonitorOMMConfiguracao(Sinacor.UI.Bovespa.Monitoracao.Communication.Bovespa.Parametro.ConfiguracaoOMM.MonitorOMMConfiguracaoClienteResponse from) 
        {
            Model.MonitorOMMConfiguracao to = new Model.MonitorOMMConfiguracao();
            to.TcpServerHostName = from.TcpServerHostName;
            to.TcpServerPort = from.TcpServerPort;
            return to; 


        }
    }
}
